.class public Lcom/zuimeia/sdk/download/view/CustomAlertDialog;
.super Landroid/app/Dialog;
.source "CustomAlertDialog.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/zuimeia/sdk/download/view/CustomAlertDialog$OnMyAlertClickListener;,
        Lcom/zuimeia/sdk/download/view/CustomAlertDialog$AlertBuilder;
    }
.end annotation


# instance fields
.field private detailText:Landroid/widget/TextView;

.field private negativeText:Landroid/widget/TextView;

.field private positiveText:Landroid/widget/TextView;

.field private titleText:Landroid/widget/TextView;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 3
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 29
    sget v0, Lcom/zuimeia_sdk_download/downloadprovider/R$style;->zuimeia_sdk_download_alert_dialog:I

    invoke-direct {p0, p1, v0}, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;-><init>(Landroid/content/Context;I)V

    .line 30
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;I)V
    .registers 3
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "theme"    # I

    .prologue
    .line 25
    invoke-direct {p0, p1, p2}, Landroid/app/Dialog;-><init>(Landroid/content/Context;I)V

    .line 26
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;ZLandroid/content/DialogInterface$OnCancelListener;)V
    .registers 4
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "cancelable"    # Z
    .param p3, "cancelListener"    # Landroid/content/DialogInterface$OnCancelListener;

    .prologue
    .line 21
    invoke-direct {p0, p1, p2, p3}, Landroid/app/Dialog;-><init>(Landroid/content/Context;ZLandroid/content/DialogInterface$OnCancelListener;)V

    .line 22
    return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .registers 3
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 34
    invoke-super {p0, p1}, Landroid/app/Dialog;->onCreate(Landroid/os/Bundle;)V

    .line 35
    sget v0, Lcom/zuimeia_sdk_download/downloadprovider/R$layout;->zuimeia_sdk_download_download_dialog_progress:I

    invoke-virtual {p0, v0}, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;->setContentView(I)V

    .line 36
    sget v0, Lcom/zuimeia_sdk_download/downloadprovider/R$id;->download_dialog_title_text:I

    invoke-virtual {p0, v0}, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;->titleText:Landroid/widget/TextView;

    .line 37
    sget v0, Lcom/zuimeia_sdk_download/downloadprovider/R$id;->download_dialog_detail_text:I

    invoke-virtual {p0, v0}, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;->detailText:Landroid/widget/TextView;

    .line 38
    sget v0, Lcom/zuimeia_sdk_download/downloadprovider/R$id;->download_dialog_negative_text:I

    invoke-virtual {p0, v0}, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;->negativeText:Landroid/widget/TextView;

    .line 39
    sget v0, Lcom/zuimeia_sdk_download/downloadprovider/R$id;->download_dialog_positive_text:I

    invoke-virtual {p0, v0}, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;->positiveText:Landroid/widget/TextView;

    .line 40
    return-void
.end method

.method public showAlert(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/zuimeia/sdk/download/view/CustomAlertDialog$OnMyAlertClickListener;Lcom/zuimeia/sdk/download/view/CustomAlertDialog$OnMyAlertClickListener;)V
    .registers 9
    .param p1, "titleTxt"    # Ljava/lang/String;
    .param p2, "detailTxt"    # Ljava/lang/String;
    .param p3, "negativeStr"    # Ljava/lang/String;
    .param p4, "positiveStr"    # Ljava/lang/String;
    .param p5, "negativeListener"    # Lcom/zuimeia/sdk/download/view/CustomAlertDialog$OnMyAlertClickListener;
    .param p6, "positiveListener"    # Lcom/zuimeia/sdk/download/view/CustomAlertDialog$OnMyAlertClickListener;

    .prologue
    .line 44
    invoke-super {p0}, Landroid/app/Dialog;->show()V

    .line 45
    iget-object v0, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;->titleText:Landroid/widget/TextView;

    if-eqz v0, :cond_12

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_12

    .line 46
    iget-object v0, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;->titleText:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 48
    :cond_12
    iget-object v0, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;->detailText:Landroid/widget/TextView;

    if-eqz v0, :cond_21

    invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_21

    .line 49
    iget-object v0, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;->detailText:Landroid/widget/TextView;

    invoke-virtual {v0, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 51
    :cond_21
    iget-object v0, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;->negativeText:Landroid/widget/TextView;

    if-eqz v0, :cond_30

    invoke-static {p3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_30

    .line 52
    iget-object v0, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;->negativeText:Landroid/widget/TextView;

    invoke-virtual {v0, p3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 54
    :cond_30
    iget-object v0, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;->negativeText:Landroid/widget/TextView;

    if-eqz v0, :cond_3e

    .line 55
    iget-object v0, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;->negativeText:Landroid/widget/TextView;

    new-instance v1, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$1;

    invoke-direct {v1, p0, p5}, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$1;-><init>(Lcom/zuimeia/sdk/download/view/CustomAlertDialog;Lcom/zuimeia/sdk/download/view/CustomAlertDialog$OnMyAlertClickListener;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 65
    :cond_3e
    iget-object v0, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;->positiveText:Landroid/widget/TextView;

    if-eqz v0, :cond_4d

    invoke-static {p4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_4d

    .line 66
    iget-object v0, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;->positiveText:Landroid/widget/TextView;

    invoke-virtual {v0, p4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 68
    :cond_4d
    iget-object v0, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;->positiveText:Landroid/widget/TextView;

    if-eqz v0, :cond_5b

    .line 69
    iget-object v0, p0, Lcom/zuimeia/sdk/download/view/CustomAlertDialog;->positiveText:Landroid/widget/TextView;

    new-instance v1, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$2;

    invoke-direct {v1, p0, p6}, Lcom/zuimeia/sdk/download/view/CustomAlertDialog$2;-><init>(Lcom/zuimeia/sdk/download/view/CustomAlertDialog;Lcom/zuimeia/sdk/download/view/CustomAlertDialog$OnMyAlertClickListener;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 79
    :cond_5b
    return-void
.end method
